<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>

<base href="<%=basePath%>"/>
<title>${title }</title>

</head>
<style>
	.select1{
		width: 120px;
		height: 50px;
		background-color: #027916;
		color: white;
		font-weight: bold;
		font-size: large;
		outline: none;
		border: 0px;

	}
	.select1 a{
		color: white;
	}
	.select2{
		width: 120px;
		height: 50px;
		background-color: #ff4500;
		color: white;
		font-weight: bold;
		font-size: large;
		outline: none;
		border: 0px;

	}
	.select2 a{
		color: white;
	}
</style>

<body>
	<jsp:include page="header.jsp"></jsp:include>
	<div class="block box">
		<div class="blank"></div>
		<div id="ur_here">
			当前位置: <a href=".">首页</a>
			<code> &gt; </code>
			我的预约
		</div>
	</div>
	<div class="blank"></div>
	<div class="block table">
		<div class="flowBox">
			<h6>
				<span>我的预约</span>
			</h6>
			<form action="index/deletecart" method="post">
				<table width="99%" align="center" border="0" cellpadding="5"
					cellspacing="1" bgcolor="#dddddd">
					<tr>
						<th bgcolor="#ffffff">服务名称</th>
						<th bgcolor="#ffffff">价格</th>
						<th bgcolor="#ffffff">加入日期</th>
						<th bgcolor="#ffffff">操作</th>
					</tr>
					<c:forEach items="${cartList}" var="cart">
						<tr>
							<td bgcolor="#ffffff" align="center" style="width: 300px;">
								<a href="index/detail?id=${cart.goodsid }"
								target="_blank"><img style="width: 80px; height: 80px;"
									src="http://localhost:8888/house/${cart.image}" border="0" title="${cart.goodsname }" />
							</a> <br /> <a href="index/detail?id=${cart.goodsid }"
								target="_blank" class="f6">${cart.goodsname }</a>
							</td>
							<td align="center" bgcolor="#ffffff">￥${cart.price }元</td>
							<td align="center" bgcolor="#ffffff">${cart.addtime }</td>
							<td align="center" bgcolor="#ffffff"><a
								href="javascript:if (confirm('确认删除？')) location.href='<%=basePath%>index/deletecart?id=${cart.cartid}'; "
								class="f6">移除</a></td>
						</tr>
					</c:forEach>
				</table>


				<table width="99%" align="center" border="0" cellpadding="5"
					cellspacing="0" bgcolor="#dddddd">
					<tr>
						<td bgcolor="#ffffff">
							<button class="select1"><a href="index.jsp">继续预约</a></button>
<%--							<a href="index.jsp"><img src="themes/xecmoban_haier2015/images/continue.gif" alt="continue" /> </a>--%></td>
						<td bgcolor="#ffffff" align="right">
							<button class="select2"><a href="index/preCheckout">去支付</a></button>
<%--							<a href="index/preCheckout"><img src="themes/xecmoban_haier2015/images/checkout.gif" alt="checkout" /> </a>--%>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div class="blank"></div>

		<div class="blank5"></div>
	</div>



	<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>
